package com.cjg.javaBasics;

public class Array1 {
    public static void main(String[] args) {
        int[ ][ ] a ={{1,2},{3,4},{5,6}};
        //foreach只能输出一维 foreach两次降为 输出
        for (int[] ints : a) {
            for (int anInt : ints) {
                System.out.println(anInt);
            }
        }
        for (int i = 0; i <a.length ; i++) {
            for (int j = 0; j <a[i].length ; j++) {
                System.out.println(a[i][j]);
            }
        }

    }
}
